<template>
	<view class="container u-skeleton" :style="appThemeStyle">
		<u-navbar title="个人中心" :is-back="false" :border-bottom="false" :title-color="appTheme.mainFg" :background="{background:appTheme.mainBg}"></u-navbar>
		<view class="header u-flex u-row-center u-col-center u-p-b-60">
			<view class="u-text-center" @click="$navTo('pages/my/userinfo')" v-if="userInfo.is_login">
				<u-avatar :src="userInfo.avatar" size="150"></u-avatar>
				<view class="nickname">{{userInfo.nick_name}}</view>
			</view>
			<view class="u-text-center" @click="$navTo('pages/my/login')" v-else>
				<u-avatar src="/static/avatar.png" size="150"></u-avatar>
				<view class="nickname">登录</view>
			</view>
		</view>
		<view class="box">
			<u-cell-group>
				<u-cell-item icon="chat" title="投诉建议" @click="$navTo('pages/my/feedback')"></u-cell-item>
				<u-cell-item icon="phone" title="隐私协议" @click="$navTo('pages/my/agreement?name=privacy')"></u-cell-item>
				<u-cell-item icon="info-circle" title="用户协议" @click="$navTo('pages/my/agreement?name=user')"></u-cell-item>
				<u-cell-item icon="info-circle" title="个人设置" @click="$navTo('pages/my/userinfo')"></u-cell-item>
			</u-cell-group>
		</view>
		<u-tabbar :list="tabbarlist" :active-color="appTheme.matchColor"></u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.header {
		width: 100vw;
		min-height: 375rpx;
		background-color: $main-bg;
		color: $main-fg;
		.nickname {
			font-size: 32rpx;
		}
	}
	.box {
		margin: 30rpx;
		margin-top: -60rpx;
		min-height: 170rpx;
		border-radius: 30rpx;
		background-color: #fff;
		overflow: hidden;
		.icon {
			width: 90rpx;
			height: 90rpx;
		}
		.u-font-md {
			color: $vice-text;
		}
	}
</style>
